package com.societyGames.codeExercise
{
	import com.societyGames.action.IAction;

	public class ReportExceptionAction implements IAction
	{
		private var _serviceProvider:IServiceProvider;
		private var _error:Error;
		
		public function ReportExceptionAction(serviceProvider:IServiceProvider, error:Error)
		{
			this._serviceProvider = serviceProvider;
			this._error = error;
		}
		
		//IAction-->
		public function startAction():void
		{
			this._serviceProvider.reportException(this._error);
		}
		//<--IAction
	}
}